tools: allow configure time choice of libexec subdirectory.
authorIan Campbell <ian.campbell@citrix.com>
Wed, 16 Dec 2015 15:06:35 +0000 (15:06 +0000)
committerIan Campbell <ijc@debian.org>
Tue, 9 Feb 2016 16:41:16 +0000 (16:41 +0000)
commita836b5bbc10ab3d10ab801090eb084b4d5e70db6
tree2a087d7a2ff4c4d52154f0f858411a279c3358ab
parent216d8c686133c445d49f46eb276e35ef61d885bb
tools: allow configure time choice of libexec subdirectory.

Currently we hardcode various paths such as $libexec/xen/{bin,boot},
however some downstreams (notably Debian) would like instead to
install things into $libexec/xen-X.Y/{bin,boot} as part of allowing
multiple versions of the tools packages to be installed.

Since this currently involves patching configure its a bit fiddly,
provide a configure option for the leaf dir instead, name it
--with-libexec-leaf-dir similar to the existing
--with-sysconfig-leaf-dir.

Rather than have the determination of the full path in both configure
and config/Paths.mk.in move it into configure only. Also for
consistency move the other LIBEXEC_* to configure, even though they
are only substituted into Paths.mk.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: 805508@bugs.debian.org
[ ijc -- removed stray ` ]

(cherry picked from commit de858271c16851d662b2613699401df6ecec8ef8)

Patch-Name: tools-allow-configure-time-choice-of-libexec-subdire.patch

Gbp-Pq: Name tools-allow-configure-time-choice-of-libexec-subdire.patch
config/Paths.mk.in
configure
m4/paths.m4
tools/configure